package com.dz.goods.domain.entity;

import com.dz.common.core.entity.BaseEntity;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


/****

 *****/
@Table(name="tb_sku")
@Data
@Entity
public class Sku extends BaseEntity implements Serializable{

	@Id
    @Column(name = "id")
	private Long id;

    @Column(name = "sn")
	private String sn;

    @Column(name = "name")
	private String name;

    @Column(name = "price")
	private Integer price;

    @Column(name = "num")
	private Integer num;

    @Column(name = "alert_num")
	private Integer alertNum;

    @Column(name = "image")
	private String image;

    @Column(name = "images")
	private String images;

    @Column(name = "weight")
	private Integer weight;

    @Column(name = "spu_id")
	private Long spuId;

    @Column(name = "category_id")
	private Long categoryId;

    @Column(name = "category_name")
	private String categoryName;

    @Column(name = "brand_name")
	private String brandName;

    @Column(name = "spec")
	private String spec;

    @Column(name = "sale_num")
	private Integer saleNum;

    @Column(name = "comment_num")
	private Integer commentNum;

    @Column(name = "status")
	private String status;


}
